// 封装请求参数
import http from "./index"

interface T {
    method: any,
    url: string,
    data?: object, 
    params?: object,
    responseType?: any,
    timeout?: number,
    onDownloadProgress?: any

}
function request({ method = "get", url, responseType, data = {}, params = {}, onDownloadProgress, timeout }: T): any {
    return http({
        method,
        url,
        responseType,
        data,
        params,
        timeout,
        onDownloadProgress
    })
}

export default request